export const rules = {
  avatarID: {
    required: true,
    avatarID: true,
  },
  name: {
    required: true,
    minlength: 2
  },
  phone: {
    required: true,
    tel: true
  },
  region: {
    required: true,
    region: true,
  },
  size: {
    required: true,
    size: true,
  },
  klass: {
    required: true,
    klass: true,
  },
}

export const messages = {
  avatarID: {
    required: '请上传个人照片',
    avatarID: '请上传个人照片'
  },
  name: {
    required: '请填写真实姓名',
    minlength: '姓名不少于两个字'
  },
  phone: {
    required: '请填写手机号',
    tel: '请填写正确的手机号'
  },
  region: {
    required: '请选择地区',
    region: '请选择省市区',
  },
  size: {
    required: '请选择定制服装尺码',
    size: '请选择定制服装尺码',
  },
  klass: {
    required: '请选择班级',
    klass: '请选各年级的所在班级',
  },
}